package com.wuyou.api;

import com.wuyou.domain.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient("worryfree-leasing-siuation-service")
public interface HouseController {

    /**
     *
     * @param hostId 房东Id 为空则查询全部
     * @return
     */
    @GetMapping("getHouseAll")
    Result getHouseAll(Long hostId);

    /**
     *
     * @param hostId 房东Id 为空则查询全部未出租房源
     * @return
     */
    @GetMapping("getHouseAllUnLeased")
    Result getHouseAllUnLeased(Long hostId);

    /**
     *
     * @param hostId 房东Id 为空则查询全部已出租房源
     * @return
     */
    @GetMapping("getHouseAllLeased")
    Result getHouseAllLeased(Long hostId);

    /**
     *
     * @param detailId 详情id 不能为空
     * @return
     */
    @GetMapping("getLeasedDetail")
    Result getLeasedDetail(Long detailId);

    /**
     *
     * @param houseId 需要删除的房屋id
     * @return
     */
    @DeleteMapping
    Result deleteHouse(Long houseId);
}
